package com.chenyun.system;

import cn.dev33.satoken.SaManager;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author Lonni
 * @date 2022-06-06 20:30
 */
@SpringBootApplication(scanBasePackages = "com.chenyun")
@EnableDiscoveryClient
@Slf4j
@EnableDubbo(scanBasePackages = {"com.chenyun","com.lonni"})
public class SystemApplication {
    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class, args);
        log.info("启动成功：Sa-Token配置如下：" + SaManager.getConfig());
    }
}
